package com.wtwd.campus.hxy.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.campus.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author zdl
 * @since 2021-07-27
 */
@ApiModel(value="HxyFence对象", description="")
public class HxyFence extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "围栏id")
    @TableId(value = "fence_id", type = IdType.ASSIGN_ID)
    private String fenceId;

    @ApiModelProperty(value = "设备IMEI")
    private String imei;

    @ApiModelProperty(value = "围栏名称")
    private String name;

    @ApiModelProperty(value = "半径")
    private Double radius;

    @ApiModelProperty(value = "围栏类型 0进围栏1出围栏")
    private Integer fenceType;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "报警时段")
    private String timeperiod;


    public String getFenceId() {
        return fenceId;
    }

    public void setFenceId(String fenceId) {
        this.fenceId = fenceId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getRadius() {
        return radius;
    }

    public void setRadius(Double radius) {
        this.radius = radius;
    }

    public Integer getFenceType() {
        return fenceType;
    }

    public void setFenceType(Integer fenceType) {
        this.fenceType = fenceType;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getTimeperiod() {
        return timeperiod;
    }

    public void setTimeperiod(String timeperiod) {
        this.timeperiod = timeperiod;
    }

    @Override
    public String toString() {
        return "HxyFence{" +
        "fenceId=" + fenceId +
        ", imei=" + imei +
        ", name=" + name +
        ", radius=" + radius +
        ", fenceType=" + fenceType +
        ", latitude=" + latitude +
        ", longitude=" + longitude +
        ", timeperiod=" + timeperiod +
        "}";
    }
}
